package org.anddev.andengine.extension.svg.node;
/**
 * @author Eric Depta
 * @since 01:14:00 - 28.02.2011
 */
import org.anddev.andengine.extension.svg.SVGDoc;
import org.anddev.andengine.extension.svg.SVGTransform;
import org.anddev.andengine.extension.svg.util.transform.TransformDoc;
import org.anddev.andengine.util.SAXUtils;
import org.xml.sax.Attributes;

public class TransformableNode extends BaseNode {
	protected TransformDoc mTransformation = null;
	
	public TransformableNode(SVGDoc pSVGDoc) {
		super(pSVGDoc);
	}
	
	public void create(final Attributes pAttributes, final TransformDoc pTDoc){
		this.mTransformation = new SVGTransform(SAXUtils.getAttribute(pAttributes, TAG_ATTRIBUTE_TRANSFORM, ""), pTDoc).getDoc();
	}
	
	public TransformDoc getTransformation(){
		return this.mTransformation;
	}
}
